package top.kaoshanji.t1ch10a;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 代码清单-t1ch10a-206页a：在控制器类中实现REST端点动作
 * @author kaoshanji
 * ^_^
 * create time 2025/4/30 18:20
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "Hello。。";
    }

    @GetMapping("/ciao")
    public String ciao() {
        return "Ciao！";
    }

}
